package com.manager.car.service;

import java.util.List;

import com.manager.car.dao.IDemandInfoDao;
import com.manager.car.po.DemandInfo;


public class DemandInfoServiceImpl implements IDemandInfoService{
   
	private IDemandInfoDao demandInfoDao;
	
	public DemandInfo queryId(Integer id) {
		return demandInfoDao.queryId(id);
	}

	public List<DemandInfo> queryAll() {
		return demandInfoDao.queryAll();
	}

	public void add(DemandInfo di) {
		demandInfoDao.save(di);
	}

	public void delete(Integer id) {
			demandInfoDao.delete(id);
	}

	public void update(DemandInfo di) {
		demandInfoDao.update(di);
	}

	public IDemandInfoDao getDemandInfoDao() {
		return demandInfoDao;
	}

	public void setDemandInfoDao(IDemandInfoDao demandInfoDao) {
		this.demandInfoDao = demandInfoDao;
	}
}
